<%@ page import="com.springx.modules.utils.Encodes" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
    <title>Web Service 演示</title>
</head>
<body>

<div class="row">
    <div class="col-xs-12">
        <div class="page-header">
            <h1>Web Service 演示</h1>
        </div>
        <table id="simple-table" class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th class="center">功能</th>
                <th class="center">效果描述</th>
                <th class="center">演示</th>
            </tr>
            </thead>

            <tbody>
            <tr>
                <td>
                    传统的SOAP Web Service演示
                </td>
                <td></td>
                <td>
                    <ul>
                        <li>服务端是基于CXF的JAX-WS演示, 见CXF自动生成的<a href="${ctx}/cxf/">wsdl文件列表</a></li>
                        <li>客户端见Functional Test用例, 或SoapUI工具.</li>
                    </ul>
                </td>

            </tr>

            <tr>


                <td>
                    基于JAX-RS标准的Restful演示
                </td>
                <td></td>
                <td>
                    <ul>
                        <li>服务端是基于CXF的JAX-WS演示, CXF自动生成的<a href="${ctx}/cxf/">wadl文件列表</a></li>
                        <li>演示地址：<a href="${ctx}/cxf/jaxrs/user/1.xml">/cxf/jaxrs/user/1.xml</a> 与 <a
                                href="${ctx}/cxf/jaxrs/user/1.json">/cxf/jaxrs/user/1.json</a></li>
                    </ul>
                </td>


            </tr>

            <tr>


                <td>
                    SpringMVC Restful Service高级演示
                </td>
                <td></td>
                <td>
                    服务端:
                    <ul>
                        <li>集成Shiro进行HttpBasic的认证</li>
                        <li>XML与JSON两种格式的序列化，根据Url自动判定Content-Type</li>
                        <li>演示地址：<a href="${ctx}/api/secure/v1/user/1.xml">/api/v1/user/1.xml</a> 与 <a
                                href="${ctx}/api/secure/v1/user/1.json">/api/v1/user/1.json</a>
                        </li>
                    </ul>
                    客户端:
                    <ul>
                        <li>RestTemplate设置HttpHeaders的写法，用原始的exchange()方法及用ClientHttpRequestInterceptor两种方法</li>
                        <li>RestTemplate底层使用用默认的JDK HttpConnection，也可设置为Apache HttpClient4</li>
                        <li>RestTemplate设置超时控制</li>
                        <li>客户端同样见Functional Test用例UserRestFt.java</li>
                    </ul>

                </td>


            </tr>


            </tbody>
        </table>
    </div>
    <!-- /.span -->
</div>
<!-- /.row -->


<!-- page specific plugin scripts -->
<c:import url="../common/dataTable.jsp"/>
</body>